package day13.Ti.DXC;

public class Ti02 {
    public static void main(String[] args) {
        MyRunable mr = new MyRunable();
        Thread t = new Thread(mr);
        t.start();
        for (int k = 0; k < 1000; k++) {
            System.out.println("k="+k);
        }
    }
}

class MyRunable implements Runnable {

    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("i="+i);
        }
    }
}
